package com.bjpowernode.service.impl;

import com.bjpowernode.entity.TPermission;
import com.bjpowernode.mapper.TPermissionMapper;
import com.bjpowernode.service.PermissionService;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

import java.nio.channels.Pipe;
import java.util.List;

@Service
@RequiredArgsConstructor
public class PermissionServiceImpl implements PermissionService {

    private final TPermissionMapper tPermissionMapper;

    @Override
    public List<TPermission> selectMenuPermission(Integer id) {
        return tPermissionMapper.selectMenuPermission(id);
    }
}
